package com.corn.turorial.spring.data.model;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author : Jim Wu
 * @version 1.0
 * @function :
 * @since : 2021/2/8 16:11
 */

@Data
public class UserWithValidator {

    @NotNull(message = "user.msg.userId.notNull")
    private Long id;

    private String name;

    private Integer age;

}
